package edu.guet.Factory.AbstractFactory;


import edu.guet.Factory.AbstractFactory.Pizza.Pizza;
import edu.guet.Factory.AbstractFactory.PizzaStroe.ChicagoStylePizzaStroe;
import edu.guet.Factory.AbstractFactory.PizzaStroe.NYStylePizzaStroe;
import edu.guet.Factory.AbstractFactory.PizzaStroe.PizzaStroe;

import static edu.guet.Factory.PizzaType.cheese;
import static edu.guet.Factory.PizzaType.veggie;

/**
 * Created by Caesar on 2017/5/6.
 */
public class Consumer {
    public static void main(String[] args) {
        PizzaStroe nyStore = new NYStylePizzaStroe();
        PizzaStroe chicagoStore = new ChicagoStylePizzaStroe();

        Pizza pizza = nyStore.orderPizza(cheese);
        System.out.println("Ethan ordered a " + pizza.getName() + "\n");
        pizza = chicagoStore.orderPizza(veggie);
        System.out.println("Joel ordered a " + pizza.getName() + "\n");
    }
}
